package vip.geeker.iotms.persistance.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@TableName("warn_rule")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class WarnRule extends PageParam implements Serializable {

    private static final long serialVersionUID = -677276910824684028L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer deviceType;

    private Integer paramsId;

    private String duration;

    private Date createTime;

    private Integer creator;

    private Boolean valid;

    private BigDecimal minValue;

    private BigDecimal maxValue;

}